//
//  SEGFindQuizListByQuizTypeModel.h
//  ExcellentHome
//
//  Created by 刘山 on 16/8/29.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import <Foundation/Foundation.h>
#if __has_include(<SEGStandard/SEGcustomContentView.h>)
#import <SEGStandard/SEGcustomContentView.h>
#else
#import "SEGcustomContentView.h"
#endif

//内容显现类型
typedef NS_ENUM(NSUInteger, SEGFindQuizListByQuizTypeModelLinkType) {
    SEGFindQuizListByQuizTypeModelLinkTypeNO = 1110, //原文
    SEGFindQuizListByQuizTypeModelLinkTypeTOPIC = 1111, //话题
    SEGFindQuizListByQuizTypeModelLinkTypeLINK = 1112, //超链接
    SEGFindQuizListByQuizTypeModelLinkTypePRAISE = 1113, //赞赞中的奖状
    SEGFindQuizListByQuizTypeModelLinkTypeNULL = 0, //啥都没有
};

@interface SEGFindQuizListByQuizTypeModel : NSObject
@property (nonatomic, copy) NSString* quizId; // 1234,
@property (nonatomic, copy) NSString* quizContent; // 哦哦哦
@property (nonatomic, copy) NSString* quizContent1; // 哦哦哦 原内容，没做本地修改
@property (nonatomic, copy) NSString* linkUrl; // 10
@property (nonatomic, copy) NSString* linkTitle; // 啤酒节
@property (nonatomic, copy) NSString* linkTilte; // ***这个字段是和话题详情相对应***
@property (nonatomic, copy) NSString* quizTypeId; // 5,
@property (nonatomic, copy) NSString* ico; // /picture/2016/08/201608261512292978.JPEG
@property (nonatomic, copy) NSString* userId; // 30013
@property (nonatomic, strong) NSNumber* isAuth; // 1,
@property (nonatomic, strong) NSNumber* isParise; // 0
@property (nonatomic, strong) NSNumber* browseTotal; // 14,
@property (nonatomic, strong) NSNumber* commentTotal; // 0,
@property (nonatomic, strong) NSNumber* praiseTotal; // 0,
@property (nonatomic, strong) NSNumber* createTime;
@property (nonatomic, copy) NSString* quizTypeDesc;
@property (nonatomic, copy) NSString* quizPic;
@property (nonatomic, copy) NSString* communityName;
@property (nonatomic, copy) NSString* objId;
@property (nonatomic, copy) NSString* objType;
@property (nonatomic, copy) NSString* userName;
@property (nonatomic, strong) NSNumber* sex; // 1女 2男
@property (nonatomic, assign) CGFloat seg_rowHright; //cell高度 用来适配iOS8以前

//=====================新加字段=====================
@property (nonatomic, strong) NSArray* quizPicArr; //截取图片的个数(全地址)
@property (nonatomic, assign) SEGFindQuizListByQuizTypeModelLinkType LinkType; //显示的种类

@property (nonatomic, assign) BOOL showNoDataPic; //没有数据显示缺省图

@property (nonatomic, copy) NSString* level;//等级
@property (nonatomic, copy) NSString* growth;//成长值
@property (nonatomic, copy) NSString* levelUrl;//等级图标

@property (nonatomic, assign) CGFloat textHeight;
@property (nonatomic, assign) BOOL bigFont;

/**
 话题类型 1：文字话题 2：图文话题
 */
@property (nonatomic, copy) NSString *pgcType;

// 控件内容布局计算
@property (nonatomic, strong) SEGcustomContentViewLayout *layout;
@property (nonatomic, strong) NSArray* noRootPicArr; //截取图片的个数(不是全地址)



/**
 是否广播，用于标示是否为求助，等于1为求助
 */
@property (nonatomic, copy) NSString *isBroadCast;
/**
 联系人
 */
@property (nonatomic, copy) NSString *contacts;
/**
 手机
 */
@property (nonatomic, copy) NSString *tel;
/**
 求助标签ID
 */
@property (nonatomic, copy) NSString *labelId;
/**
 求助标签
 */
@property (nonatomic, copy) NSString *labelName;

/// 是否是广告
@property (nonatomic, assign) BOOL isAdvertisement;
/// 广告下标
@property (nonatomic, assign) NSInteger adverIndex;

+ (instancetype)initWithDictionary:(NSDictionary*)dictionary;
- (CGFloat)imageHeightWithName:(NSString *)imageName width:(CGFloat)width;
@end
